package com.tepth.busfix.ic;

/**
 * @author zhangyu
 * @date 2018/5/14
 */

public class IcManager implements ICInterface{
    private ICInterface mInterface;

    private IcManager(){
        mInterface = new LotusCard();
    }
    private static final class Holder{
        private static final IcManager INSTANCE = new IcManager();
    }
    public static IcManager getInstance(){
        return Holder.INSTANCE;
    }
    @Override
    public void openDevice() {
        mInterface.openDevice();
    }

    @Override
    public void searchCard() {
        mInterface.searchCard();
    }

    @Override
    public void closeDevice() {
        mInterface.closeDevice();
    }

    @Override
    public void leisureDevice() {
        mInterface.leisureDevice();
    }


}
